﻿using ABMath.Miscellaneous;
using MathNet.Numerics.LinearAlgebra;
using NUnit.Framework;

namespace ABMath.Tests.Miscellaneous
{
    [TestFixture]
    public class LogLikelihoodPenalizerTest
    {
        [Test]
        public void PenaltyTest()
        {
            Vector tv = new Vector(new[] {-1.0,-2,-3,-1,-1,0,1,-1});
            var llp = new LogLikelihoodPenalizer(tv);
            Assert.AreEqual(llp.Penalty, 3.0);
        }
    }
}
